﻿using System;
using System.ComponentModel.DataAnnotations;

namespace ATSimDto.DriverExamine
{
    /// <summary>
    /// 司机考试试题
    /// </summary>
    public class DriverExamineTestQuestionRequestDto
    {
        /// <summary>
        /// 试题编号
        /// </summary>
        [Display(Name = "试题编号")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(36, ErrorMessage = "{0}长度最大为{1}位")]
        public string TestquestionNo { get; set; }

        /// <summary>
        /// 试卷Id
        /// </summary>
        [Display(Name = "试卷编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long PaperId { get; set; }

        /// <summary>
        /// 资料Id
        /// </summary>
        [Display(Name = "资料编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int DatumId { get; set; }

        /// <summary>
        /// 正确答案Id
        /// </summary>
        [Display(Name = "正确答案编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int DatumAnswerId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DateTime CreateTime { get; set; }
    }
}
